/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package lucasradio;

/**
 *
 * @author big
 */
public class radio {
String nome,data, localradio;
Boolean fm,am;
Integer audiencia;
public radio (){
    nome = null;
    data = null;
    localradio = null;
    audiencia = null;
    fm = null;
    am = null;
}
    public String getNome() {
        return nome;
    }

    public void setNome(String nome) {
        this.nome = nome;
    }

    public String getData() {
        return data;
    }

    public void setData(String data) {
        this.data = data;
    }

    public Integer getAudiencia() {
        return audiencia;
    }

    public void setAudiencia(Integer audiencia) {
        this.audiencia = audiencia;
    }

    public String getLocalradio() {
        return localradio;
    }

    public void setLocalradio(String localradio) {
        this.localradio = localradio;
    }

    public Boolean getFm() {
        return fm;
    }

    public void setFm(Boolean fm) {
        this.fm = fm;
    }

    public Boolean getAm() {
        return am;
    }

    public void setAm(Boolean am) {
        this.am = am;
    }

    
    public Double lucro (){
        
        if (audiencia<= 15){
            return 450.00;
        }if (audiencia<=30){
            return 700.00;
        }else{
            return 1200.00;
        }
    }
    
    public Double vivaocapitalismo (Double x,Integer y){
        double cap = x;
        Integer capx = y;
        
        double total =  cap *capx;
        
                    if (capx >= 40){  
                    return (total *(15/100));       
    }else{
                        return total;
                    }
}
    
    public String testesfm (){
        if (fm == true){
            return "Sim";
        }else {
            return "Não";
        }
    }
        public String amteste (){
        if (am == true){
            return "Sim";
        }else {
            return "Não";
        }
    }
}
    





